<?php
// +----------------------------------------------------------------------
// | Fanwe 多语商城建站系统 (Build on ThinkPHP)
// +----------------------------------------------------------------------
// | Copyright (c) 2009 http://www.fanwe.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: awfigq(67877605@qq.com)
// +----------------------------------------------------------------------

//团购券模型
class GoodsBondModel extends CommonModel {
	protected $_validate = array(
		array('sn','require',"团购券序列号不能为空"),
		array('sn','',"该团购券序列号已经存在",0,"unique",1), 
	);
	
	protected $_auto = array (
		array('status','1'),  // 新增的时候把status字段设置为1
		array('send_time','localStrToTime',3,'function'),
		array('update_time','gmtTime',3,'function'), // 对update_time字段在插入的时候写入当前时间戳			
	);
}
?>